<div class="panel-body">
    <div class="table-responsive">
        <table class="table table-striped table-hover">
            <thead>
            <tr>
                <g:sortableColumn property="category" title="分类"/>
                <g:sortableColumn property="field" title="字段名称"/>
                <g:sortableColumn property="value" title="值"/>
                <g:sortableColumn property="createdDate" title="创建时间"/>
                <g:sortableColumn property="modifiedDate" title="修改时间"/>
                <g:sortableColumn class="text-center" width="15%" colspan="2" property="active" title="操作"/>
            </tr>
            </thead>
            <tbody>
            <g:each in="${flexFieldInstanceList}">
                <tr>
                    <td>${it?.category?.name}</td>
                    <td>${it?.field?.name}</td>
                    <td>${it?.value}</td>
                    
                    
                    <td><g:formatDate date="${it?.createdDate}"
                                      format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                    <td><g:formatDate date="${it?.modifiedDate}"
                                      format="yyyy-MM-dd HH:mm:ss"></g:formatDate></td>
                    <td class="text-center">
                        <g:link class="btn btn-xs btn-link ${this.flexFieldPermission?.name == 'Read' ? 'disabled' : ''}"
                                controller="flexFieldInstance" action="edit"
                                id="${it?.id}">
                            <i class="fa fa-edit"></i>
                            编辑
                        </g:link>

                    </td>
                    <td class="text-center">
                        <g:form resource="${it}" method="DELETE">
                            <button class="deleteBtn btn btn-xs btn-link ${this.flexFieldPermission?.name == 'Read' ? 'disabled' : ''}" type="button"><i
                                    class="fa fa-trash-o"></i> 删除</button>
                        </g:form>
                    </td>
                </tr>
            </g:each>
            </tbody>
        </table>
    </div>
</div>